﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class pages_header : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        AHMIDEAIdentity id = (AHMIDEAIdentity)HttpContext.Current.User.Identity;
        userDisplayName.InnerHtml = id.DisplayName;

        // generate menu
        mainMenuContainer.InnerHtml = AHMIDEAFunctions.GenerateMainMenu(false);

        //Hide change password for non SYSTEM users
        if (AHMIDEAFunctions.ContextDomain(HttpContext.Current).ToUpper() != "SYSTEM") {
            hdrScript.InnerHtml = @"<script type=""text/javascript"">$(function () { $('#chPassLink, .main-sidebar a[data-formid=\'AHMIDEA-AHMIDEA_AHMIDEAF01\']').hide(); });</script>";
        }
    }
}